<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<head>
    <title>Menu Fragment</title>
</head>

<body>

<style>
        body {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0;
            background-color: #e3f2fd;
        }

        .logo {
            font-size: 12rem;
            font-weight: bold;
            color: #003366;
            margin-top: 10rem;
        }

        .nav {
            background-color: #003366;
        }
    </style>
<div th:fragment="navmenu">

        <nav class="navbar navbar-expand-lg navbar-dark" style="background-color: #003366;">
            <div class="container-fluid">
                <a class="navbar-brand">Sony</a>
                <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="navbarSupportedContent">
                    <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                        <li class="nav-item">
                            <a class="nav-link active" aria-current="page" th:href="@{ ${ #mvc.url('HC#landing').build() } }">Home</a>
                        </li>

                        <li class="nav-item">
                            <a class="nav-link" th:href="@{ ${ #mvc.url('SC#management').build() } }">用户管理</a>
                        </li>

                        <li class="nav-item">
                            <a class="nav-link" th:href="@{ ${ #mvc.url('QTC#getQuestions').build() } }">题库管理</a>
                        </li>

                        <li class="nav-item">
                            <a class="nav-link" th:href="@{ ${ #mvc.url('EC#list').build() } }">考试管理</a>
                        </li>

                        <li class="nav-item">
                            <a class="nav-link" th:href="@{ ${ #mvc.url('ESC#studentList').build() } }">考生管理</a>
                        </li>

                        <li class="nav-item">
                            <a class="nav-link" th:href="@{ ${ #mvc.url('QC#showSelectExamPage').build() } }">试卷管理</a>
                        </li>

                        <li class="nav-item">
                            <a class="nav-link" th:href="@{ ${ #mvc.url('SEC#listForm').build() } }">在线答题</a>
                        </li>

                        <li class="nav-item">
                            <a class="nav-link" th:href="@{ ${ #mvc.url('SEC#selectScore').build() } }">成绩查询</a>
                        </li>

                    </ul>

                    <div class="d-flex" style="color :#FFFFFF">
                        <div th:text="${ currentUser.name }"></div>&nbsp;
                        (
                        <div th:text="${ currentUser.employeeNo }"></div>
                        )&nbsp;
                        <a href="/logout" class="btn btn-primary">退出</a>
                    </div>
                </div>
            </div>
        </nav>




</div>


</body>
</html>
